using System;

static void Eratosthenes({
int[] prime = new int[101]; int count = 0:
for (int i = 0; i <= 100; i++)
    prime[i] = 1;	//初始化所有的数为素数	
for (int i = 2:i <= MathSart(100):i++)
    //从第一个素数2开始筛选
    if (prime[i] == 1)
        //如果是素数
        for (int j = i * i; j <= 100; j += i)
            //则剔除掉它的倍数 prime[j]=0;

            for (int i = 2; i <= 100; i++)
                if (prime[i] == 1)
                    count++;
// printf("%6d "，i); Console.Write(i+"") if(count %5==0)
Console.WriteLine("\n");
}
Console.WriteLine("count=" + count);
